<%layout("/common/layout.html"){%>

<div class="am-g am-g-fixed blog-g-fixed">

    <div class="am-u-md-8">

        <ol class="am-breadcrumb">
            <li><a href="#" class="am-icon-home">首页</a></li>
            <li class="am-active">个人信息</li>
        </ol>

        <div class="am-panel am-panel-default">
            <div class="am-panel-bd">
                <div class="am-g">
                    <div class="am-u-md-4">
                        <%if(user.img==null){%>
                        <img class="am-img-circle am-img-thumbnail"
                             src="http://amui.qiniudn.com/bw-2014-06-19.jpg?imageView/1/w/1000/h/1000/q/80" alt=""/>
                        <%}else{%>
                        <img class="am-img-circle am-img-thumbnail"
                             src="${user.img!}" alt=""/>
                        <%}%>

                    </div>
                    <div class="am-u-md-8">
                        <h1>${user.name}</h1>

                        <p>${user.feeling!}</p>
                    </div>
                </div>
            </div>

            <br>

            <div class="am-panel-bd am-md-text-center">
                <p class="book-text-address"><span class="am-icon-map-marker am-icon-sm"> 地址</span> ${user.location!}</p>

                <p class="book-text-address"><span class="am-icon-phone am-icon-sm"> 电话</span> ${user.phone!}</p>

                <br>

                <%if(session.user!=null){%>
                <%if(session.user.id==user.id){%>
                    <button onclick="window.location='${base}/editInfo'" type="button" class="am-btn am-btn-warning am-round">编辑信息</button>
                <%}%>
                <%}%>

            </div>
        </div>

    </div>
    <%include("/common/right.html"){}%>
</div>
<%}%>